.class final Lcom/apprupt/android/cvclient/a;
.super Landroid/webkit/WebViewClient;


# instance fields
.field private synthetic a:Lcom/apprupt/android/cvclient/c;

.field private final synthetic b:Landroid/content/Context;


# direct methods
.method constructor <init>(Lcom/apprupt/android/cvclient/c;Landroid/content/Context;)V
    .locals 0

    iput-object p1, p0, Lcom/apprupt/android/cvclient/a;->a:Lcom/apprupt/android/cvclient/c;

    iput-object p2, p0, Lcom/apprupt/android/cvclient/a;->b:Landroid/content/Context;

    invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V

    return-void
.end method


# virtual methods
.method public final onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
    .locals 1

    const-string v0, "about:blank"

    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    return-void
.end method

.method public final shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .locals 3

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/apprupt/android/cvclient/a;->b:Landroid/content/Context;

    const-class v2, Lcom/apprupt/android/cvclient/CvOverlay;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "url"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/apprupt/android/cvclient/a;->b:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    const/4 v0, 0x1

    return v0
.end method
